// Cloud Float...
var $main = $cloud = $cloud1 = $cloud2 = $body = mainwidth = null;
var i = 1;
var cloud1 = 50;
var cloud2 = 1120;
$(document).ready(
  function() {
    $main = $("#mainBody");
    $body = $("body");
    $cloud1 = $("#cloud1");
    $cloud2 = $("#cloud2");
    if ($main) {
      mainwidth = $main.outerWidth();
    }
  }
);

/// 飘动
setInterval(function flutter() {
  cloud1 += 1;
  cloud2 += 1;
  if(cloud1 < 1920){
    $("#cloud1").css("background-position", cloud1 + "px 100px");
    $("#cloud2").css("background-position", cloud2 + "px 500px");
  }else{
    cloud1 = 50;
    cloud2 = 1120;
    $("#cloud1").css("background-position", cloud1 + "px 100px");
    $("#cloud2").css("background-position", cloud2 + "px 500px");
  }
}, 70);
